package project1;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("a temperature in Fahrenheit");
		                      //华氏温度
		double temperatureInFahrenheit = input.nextDouble();
		System.out.println("Wind speed miles hour");
		                     //每小时风速
		double windspeed = input.nextDouble();
		       
		if (temperatureInFahrenheit>-58&&
			temperatureInFahrenheit<41&&
			windspeed>2){

		double windchill = 35.74 + 0.6215 * temperatureInFahrenheit
		        //ָ风寒ָ
		 - (35.75 * Math.pow(windspeed, 0.16))
		 + 0.4275 * temperatureInFahrenheit * Math.pow(windspeed, 0.16);
		 System.out.println("ָ风寒ָ指数ָ是ָ"+windchill);	
	}
		else {System.out.println("wrong");
	}

  }
}


